/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cp2004_assignment1;
//import java.io.*;

/**
 *
 * @author zhaoyingxi JCU Student Number: 11839209
 */
public class Item {

    private String name;
    private String describe;
    private int num;

    public Item(String n, String d, int num) {//Constructor with a parameter
        name = n;
        describe = d;
    }

    /**
     * @return the name
     */
    public Item() {
        this("CPU", "CPU is center of computer", 96);
        //Constructor without a parameter
    }

    public String getName() {  //getName
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the describe
     */
    public String getDescribe() {
        return describe;
    }

    /**
     * @param describe the describe to set
     */
    public void setDescribe(String describe) {
        this.describe = describe;
    }

    /**
     * @return the num
     */
    public int getNum() {
        return num;
    }

    /**
     * @param num the num to set
     */
    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Name:  " + name + "/ describe: " + describe + "/ number: " + num;
    }
}
